package com.xxxx.microservice.forestry.dto.data;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 字典对象
 */
@Data
@ApiModel("字典")
public class Dic {
    @ApiModelProperty(value = "字典值", position = 1)
    private String dicCode;
    @ApiModelProperty(value = "字典别名", position = 2)
    private String dicValue;
    @ApiModelProperty(value = "字典顺序", position = 3)
    private int dicOrder;
    @ApiModelProperty(value = "子集", position = 4)
    private List<Dic> children;

    public Dic() {}

    public Dic(String dicCode, String dicValue) {
        this.dicCode = dicCode;
        this.dicValue = dicValue;
    }

    public Dic(String dicCode, String dicValue, int dicOrder) {
        this.dicCode = dicCode;
        this.dicValue = dicValue;
        this.dicOrder = dicOrder;
    }

    public Dic(String dicCode, String dicValue, int dicOrder, List<Dic> children) {
        this.dicCode = dicCode;
        this.dicValue = dicValue;
        this.dicOrder = dicOrder;
        this.children = children;
    }
}
